package com.zx.zxpicture.domain.space.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zx.zxpicture.domain.space.entity.Space;
import com.zx.zxpicture.interfaces.dto.space.SpaceQueryRequest;

/**
 * @author ZX
 * @description 针对表【space(空间)】的数据库操作Service
 * @createDate 2025-02-19 15:03:21
 */
public interface SpaceDomainService extends IService<Space> {
    /**
     * 校验空间
     * @param space
     * @add 用来标识是添加空间还是修改空间
     */
    public void validSpace(Space space,Boolean add);


    /**
     * 获取查询条件
     *
     * @param spaceQueryRequest
     * @return
     */
    QueryWrapper<Space> getQueryWrapper(SpaceQueryRequest spaceQueryRequest);

    /**
     * 自动填充空间大小和额度
     * @param space
     */
    public void fillSpaceBySpaceLevel(Space space);

}
